<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>主界面</h1>
<div>
<@shiro.guest>
    您当前是游客，<a href="javascript:void(0);" class="dropdown-toggle qqlogin">登录</a>
</@shiro.guest>
<@shiro.user>
    欢迎[<@shiro.principal/>]登录，<a href="/logout">退出</a>
</@shiro.user>
</div>
<div>
    <ul>
    <@shiro.hasPermission name="member:add">
        <li><a href="http://www.baidu.com">栏目1</a></li>
    </@shiro.hasPermission>
    <@shiro.hasPermission name="member:delete">
        <li><a href="">栏目2</a></li>
    </@shiro.hasPermission>
    <@shiro.hasPermission name="member:edit">
        <li><a href="">栏目3</a></li>
    </@shiro.hasPermission>
        <li><a href="">栏目4</a></li>
    </ul>

</div>



</body>
</html>